package com.itchen.service;

import com.itchen.controller.Result;
import com.itchen.pojo.Book;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @author げっしょく
 * @date 2021/9/16
 */
public interface BookService {

    public Result save(Book book);  //返回值表示影响的行数

    public Result update(Book book);

    public Result delete(Integer id);

    public Result getById(Integer id);

    public Result getAll();


}
